#include <iostream>
#include <memory>

class ExpensiveObject {
public:
    ExpensiveObject() {
        std::cout << "ExpensiveObject Created" << std::endl;
    }
    void process() {
        std::cout << "Processing..." << std::endl;
    }
};

class LazyInitializer {
private:
    mutable std::unique_ptr<ExpensiveObject> object;
public:
    void process() {
        if (!object) {
            object = std::make_unique<ExpensiveObject>();
        }
        object->process();
    }
};

int main() {
    LazyInitializer lazy;
    std::cout << "Initialization not yet occurred." << std::endl;
    lazy.process();  // Initialization happens here
    return 0;
}